﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluentData;

namespace JwtToken.Redis.WebApi.Tools
{
    public class DBContext
    {
        private static string ConnectionString
        {
            get { return JsonConfigManager.GetInstance().ConnectionStrings("PostgreSql"); }
        }
        public static IDbContext DbContext
        {
            get
            {
                var context = new DbContext().ConnectionString(ConnectionString, new SqlServerProvider());
                return context;
            }
        }
    }
}
